package com.project;

import org.springframework.core.convert.converter.Converter;

public class IntegerTypeChange implements Converter<String,Integer> {
    @Override
    public Integer convert(String s) {
        if(s != null && s.matches("\\d+")){
            return Integer.parseInt(s);
        }

        return null;
    }
}
